using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Webkit;
using Android.Widget;

namespace XamarinApp.Droid
{
	[Activity(Label = "Single Post")]
	public class PostActivity : Activity
	{
		protected override void OnCreate(Bundle bundle)
		{
			base.OnCreate(bundle);
			SetContentView(Resource.Layout.Post);

			TextView titleText = FindViewById<TextView>(Resource.Id.titleText);
			WebView webView = FindViewById<WebView>(Resource.Id.webView);

			titleText.Text = Intent.GetStringExtra("Title");
			webView.LoadData(Intent.GetStringExtra("Content"), "text/html", "Unicode");
		}
	}
}